from server import app

# if __name__ == "__main__":
#     app.run(host='0.0.0.0', port=5000, debug=True)

if __name__ == "__main__":
    from gevent import pywsgi
    from geventwebsocket.handler import WebSocketHandler

    server = pywsgi.WSGIServer(('0.0.0.0', 5001), app, handler_class=WebSocketHandler)
    server.serve_forever()
